package com.example.system.dao;

import com.example.system.dto.RoleResult;
import com.example.system.model.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    void deleteBatchByPrimaryKeys(@Param("ids") List<Integer> ids);

    List<RoleResult> selectAll();

    List<RoleResult> selectRolesByAdminId(@Param("adminId") Integer adminId);

}